#pragma once
#include "afxwin.h"
#include "afxcolorbutton.h"

class NewMarkerDialog : public CDialogEx
{
        DECLARE_DYNAMIC(NewMarkerDialog)

    public:
        NewMarkerDialog::NewMarkerDialog(double Value, CString Caption = CString(""), COLORREF Color = 0, CWnd* pParent = NULL);
        NewMarkerDialog::NewMarkerDialog(CWnd* pParent = NULL);
        virtual ~NewMarkerDialog();

        // Dialog Data
        enum { IDD = IDD_FLEX_GRAPH_NEW_MARKER };

    protected:
        virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
        DECLARE_MESSAGE_MAP()

        // Controls
        CEdit m_EditValue;
        CEdit m_EditCaption;
        CMFCColorButton m_ColorPicker;
        CComboBox m_ComboType;


        // Functions
        afx_msg void OnBnClickedOk();
        afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);

    public:

        // Variables
        CString m_MarkerCaption;
        double m_MarkerValue;
        COLORREF m_MarkerColor;
        CComboBox m_Combo_Type;
        wchar_t m_Type;
        bool m_ShowType;
        void showType()
        {
            m_ShowType = true;
        }
};
